﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="index.aspx.cs" Inherits="JumbotCms.WebFile.User._changeavatarUpload" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>图像上传</title>
<style type="text/css">
body {
	margin: 0px;
}
</style>
<script type="text/javascript">
function CheckBrowser() 
{
	if (navigator.appName.indexOf('Microsoft') == -1) {//不是IE
		document.getElementById("SWFUpload").innerHTML="上传组件只支持IE浏览器";
	}
}
function OnCompleted(fileName){
	var path = fileName.split('|')[0];
	var oldname = fileName.split('|')[1];
	var s = oldname.lastIndexOf(".");
	var e = oldname.substring(s+1).toLowerCase();
	var newname = path + "." + e;
	parent.AttachmentOperater(newname,e);
	window.location.reload();
	//alert(fileName);
}
    </script>
</head>
<body>
        <div id="SWFUpload">
            <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
                width="350" height="28" id="Object1" name="Object1" align="middle">
                <param name="allowScriptAccess" value="sameDomain" />
                <param name="movie" value="SWFFileUpload.swf" />
                <param name="quality" value="high" />
                <param name="wmode" value="transparent">
                <param name="FlashVars" value="<%=FlashVars %>">
                <embed src="SWFFileUpload.swf" id="fileUpload2" name="fileUpload2" width="350" height="28" quality="high" align="middle" allowscriptaccess="sameDomain"
                    type="application/x-shockwave-flash" wmode="transparent" FlashVars="<%=FlashVars %>" pluginspage="http://www.macromedia.com/go/getflashplayer" />
            </object>
            <script type="text/javascript">CheckBrowser();</script>
        </div>
</body>
</html>
